Resource IDs
Resource IDs
To prevent conflicts, the IDs for resources used by the Operating System and
those used by applications are assigned from separate ranges. If you use these
ranges correctly, your application's resources are guaranteed not to conflict
with system resources and to be compatible with future system resources.
System resources use IDs in the range -32768 through 127, and application
resource IDs must fall between 128 and 32767. Some categories of resources,
such as definition procedures and font families, have different ID ranges
available or are broken down into structured ranges. This list shows a
breakdown of the ID ranges used for most resources.
Range Description
-32768 through -16385 Reserved; do not use. Any application
resource whose ID is in this range will
not work properly in current versions of
system software.
-16384 through -4065 Used for system resources owned by
other system resources.
-4064 through -4033 Reserved for use by control panels.
-4032 through -1 Used for system resources owned by
other system resources. The exception is
the 'SIZE' resource, whose ID is always
-1.
0 through 127 Used for system resources and any
definition procedures in the system
software. Applications should not use
these resource IDs.
128 through 32767 Available for your use. Your
application's definition procedures should
use IDs in the range 128 through 4095,
although other resources may use these
IDs as well. Font families and scripts
have additional restrictions, see
Font Families and Scripts.